<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:extend="http://thymeleafexamples"  layout:decorator="layout/base">
<head>
    <title>产品管理</title>
</head>
<body>

<!-- Page header -->
<div class="page-header" layout:fragment="page-header">
    <div class="page-header-content">
        <div class="page-title">
            <h4><i class="icon-arrow-left52 position-left"></i> <span class="text-semibold"
                                                                      th:text="#{web.name}">管理系统</span>
                - 产品管理</h4>
        </div>
    </div>
</div>
<!-- /page header -->

<!-- Main content -->
<div class="content-wrapper" layout:fragment="content">

    <!-- Table -->
    <div class="panel panel-flat min-panel">
        <div class="panel-heading">
            <h5 class="panel-title text-primary"><i class="icon-users"/>产品列表</h5>
        </div>

        <div class="panel-body">
            <form id="query" action="#" class="form-horizontal">
                <div class="row">
                    <div class="col-md-4">
                        <div class="form-group">
                            <label class="col-lg-4 control-label">产品名称:</label>
                            <div class="col-lg-8">
                                <input type="text" name="name" class="form-control"
                                       placeholder="名称 模糊查询"/>
                            </div>
                        </div>
                    </div>

                    <div class="col-md-3 ">
                        <div class="form-group">
                            <button type="button" id="submit" class="btn btn-primary">查询 <i
                                    class="icon-search position-right"></i></button>
                            <a href="#" th:href="@{/product/view}" class="btn btn-primary btn-add">新增<i class="icon-plus position-right"></i></a>
                        </div>
                    </div>
                </div>
            </form>
            <table class="table datatable-basic table-striped table-hover">
                <thead>
                <tr class="bg-primary">
                    <th>产品名称</th>
                    <th>产品类型</th>
                    <th>供应商</th>
                    <th>产品价格</th>
                    <th>热门</th>
                    <th>推荐</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody class="border-dashed">

                </tbody>
            </table>
        </div>
    </div>
    <script type="text/templete" id="btnGroup">
        <div class="btn-group" data-toggle="buttons">
            <button type="button" class="btn bg-slate btn-icon btn-edit">查看</button>
            <button type="button" class="btn bg-danger btn-icon  btn-del">删除</button>

            <th:block extend:hasPermission="product_hot_recommend">
                <button type="button" class="hot btn btn-icon  btn-del {hotSet}">设置热门</button>
                <button type="button" class="hot btn btn-icon  btn-del {hotCancel}">取消热门</button>
                <button type="button" class="recommend btn btn-icon  btn-del {recommendSet}">设置推荐</button>
                <button type="button" class="recommend btn btn-icon  btn-del {recommendCancel}">取消推荐</button>
            </th:block>
        </div>
    </script>
    <!-- /table -->
    <script th:inline="javascript">
        var types = /*[[${types}]]*/ null;
    </script>
    <script type="text/javascript" th:inline="javascript" th:src="@{/oss/js/product/product.js}"></script>
</div>
<!-- /main content -->

</body>
</html>